package com.jinsi.pojo;

import lombok.Data;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/**
 * @Description TODO
 * @ClassName Student
 * @Content -----
 * @Author 姚龙腾
 * @Date 2022/10/27 10:06
 */
@Data
public class Student {
    @NotEmpty(message = "姓名不能空")
    private String name;
    @NotNull(message = "年龄不能为空")
    @Range(min = 0, max = 200, message = "年龄不合法")
    private int age;

}
